package com.system.service;


import com.common.utils.AjaxResult;
import com.system.entity.SysUserEntity;
import com.vo.LoginVo;
import com.vo.UserVO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 用户信息表
 *
 * @author yangzhan
 * @email *****@mail.com
 * @date 2022-04-06 21:52:31
 */
public interface SysUserService {


    /**
     * 数据添加
     *
     * @param sysUserEntity
     */

    AjaxResult sysUserAdd(SysUserEntity sysUserEntity);

    /**
     * 删除与批量删除
     *
     * @param ids
     */
    AjaxResult sysUserDel(List<Integer> ids);

    /**
     * 更新
     *
     * @param sysUserEntity
     */
    AjaxResult sysUserUpById(SysUserEntity sysUserEntity);


    SysUserEntity sysUserGetById(String id);

    /**
     * 查询数据库
     *
     * @return
     */
    AjaxResult sysUserSelectListByPage(SysUserEntity sysUserEntity);


    /**
     * 登录校验
     *
     * @return
     */
    AjaxResult toLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);


    /**
     * 强行登录
     */
    AjaxResult toLoginTo(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);

    /**
     * 退出登录
     *
     * @param userVO
     * @return
     */
    AjaxResult logout(UserVO userVO);
}

